package com.serv.model.activiti.mapper;

import com.serv.model.activiti.ActEvtLog;
import com.serv.model.activiti.ActEvtLogCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface ActEvtLogMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActEvtLogSqlProvider.class, method="countByExample")
    long countByExample(ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @DeleteProvider(type=ActEvtLogSqlProvider.class, method="deleteByExample")
    int deleteByExample(ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @Delete({
        "delete from ACT_EVT_LOG",
        "where LOG_NR_ = #{logNr,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long logNr);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @Insert({
        "insert into ACT_EVT_LOG (LOG_NR_, TYPE_, ",
        "PROC_DEF_ID_, PROC_INST_ID_, ",
        "EXECUTION_ID_, TASK_ID_, ",
        "TIME_STAMP_, USER_ID_, ",
        "LOCK_OWNER_, LOCK_TIME_, ",
        "IS_PROCESSED_, DATA_)",
        "values (#{logNr,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, ",
        "#{procDefId,jdbcType=VARCHAR}, #{procInstId,jdbcType=VARCHAR}, ",
        "#{executionId,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, ",
        "#{timeStamp,jdbcType=TIMESTAMP}, #{userId,jdbcType=VARCHAR}, ",
        "#{lockOwner,jdbcType=VARCHAR}, #{lockTime,jdbcType=TIMESTAMP}, ",
        "#{isProcessed,jdbcType=TINYINT}, #{data,jdbcType=LONGVARBINARY})"
    })
    int insert(ActEvtLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @InsertProvider(type=ActEvtLogSqlProvider.class, method="insertSelective")
    int insertSelective(ActEvtLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActEvtLogSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="LOG_NR_", property="logNr", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_DEF_ID_", property="procDefId", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_INST_ID_", property="procInstId", jdbcType=JdbcType.VARCHAR),
        @Result(column="EXECUTION_ID_", property="executionId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TASK_ID_", property="taskId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TIME_STAMP_", property="timeStamp", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_OWNER_", property="lockOwner", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_TIME_", property="lockTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="IS_PROCESSED_", property="isProcessed", jdbcType=JdbcType.TINYINT),
        @Result(column="DATA_", property="data", jdbcType=JdbcType.LONGVARBINARY)
    })
    List<ActEvtLog> selectByExampleWithBLOBs(ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActEvtLogSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="LOG_NR_", property="logNr", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_DEF_ID_", property="procDefId", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_INST_ID_", property="procInstId", jdbcType=JdbcType.VARCHAR),
        @Result(column="EXECUTION_ID_", property="executionId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TASK_ID_", property="taskId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TIME_STAMP_", property="timeStamp", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_OWNER_", property="lockOwner", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_TIME_", property="lockTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="IS_PROCESSED_", property="isProcessed", jdbcType=JdbcType.TINYINT)
    })
    List<ActEvtLog> selectByExample(ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "LOG_NR_, TYPE_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, TASK_ID_, TIME_STAMP_, ",
        "USER_ID_, LOCK_OWNER_, LOCK_TIME_, IS_PROCESSED_, DATA_",
        "from ACT_EVT_LOG",
        "where LOG_NR_ = #{logNr,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="LOG_NR_", property="logNr", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_DEF_ID_", property="procDefId", jdbcType=JdbcType.VARCHAR),
        @Result(column="PROC_INST_ID_", property="procInstId", jdbcType=JdbcType.VARCHAR),
        @Result(column="EXECUTION_ID_", property="executionId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TASK_ID_", property="taskId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TIME_STAMP_", property="timeStamp", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_OWNER_", property="lockOwner", jdbcType=JdbcType.VARCHAR),
        @Result(column="LOCK_TIME_", property="lockTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="IS_PROCESSED_", property="isProcessed", jdbcType=JdbcType.TINYINT),
        @Result(column="DATA_", property="data", jdbcType=JdbcType.LONGVARBINARY)
    })
    ActEvtLog selectByPrimaryKey(Long logNr);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActEvtLogSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ActEvtLog record, @Param("example") ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActEvtLogSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") ActEvtLog record, @Param("example") ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActEvtLogSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ActEvtLog record, @Param("example") ActEvtLogCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActEvtLogSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(ActEvtLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @Update({
        "update ACT_EVT_LOG",
        "set TYPE_ = #{type,jdbcType=VARCHAR},",
          "PROC_DEF_ID_ = #{procDefId,jdbcType=VARCHAR},",
          "PROC_INST_ID_ = #{procInstId,jdbcType=VARCHAR},",
          "EXECUTION_ID_ = #{executionId,jdbcType=VARCHAR},",
          "TASK_ID_ = #{taskId,jdbcType=VARCHAR},",
          "TIME_STAMP_ = #{timeStamp,jdbcType=TIMESTAMP},",
          "USER_ID_ = #{userId,jdbcType=VARCHAR},",
          "LOCK_OWNER_ = #{lockOwner,jdbcType=VARCHAR},",
          "LOCK_TIME_ = #{lockTime,jdbcType=TIMESTAMP},",
          "IS_PROCESSED_ = #{isProcessed,jdbcType=TINYINT},",
          "DATA_ = #{data,jdbcType=LONGVARBINARY}",
        "where LOG_NR_ = #{logNr,jdbcType=BIGINT}"
    })
    int updateByPrimaryKeyWithBLOBs(ActEvtLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_EVT_LOG
     *
     * @mbg.generated
     */
    @Update({
        "update ACT_EVT_LOG",
        "set TYPE_ = #{type,jdbcType=VARCHAR},",
          "PROC_DEF_ID_ = #{procDefId,jdbcType=VARCHAR},",
          "PROC_INST_ID_ = #{procInstId,jdbcType=VARCHAR},",
          "EXECUTION_ID_ = #{executionId,jdbcType=VARCHAR},",
          "TASK_ID_ = #{taskId,jdbcType=VARCHAR},",
          "TIME_STAMP_ = #{timeStamp,jdbcType=TIMESTAMP},",
          "USER_ID_ = #{userId,jdbcType=VARCHAR},",
          "LOCK_OWNER_ = #{lockOwner,jdbcType=VARCHAR},",
          "LOCK_TIME_ = #{lockTime,jdbcType=TIMESTAMP},",
          "IS_PROCESSED_ = #{isProcessed,jdbcType=TINYINT}",
        "where LOG_NR_ = #{logNr,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(ActEvtLog record);
}